Page({
  onShow() {
    if (typeof this.getTabBar === 'function' && this.getTabBar()) {
      this.getTabBar().setData({ selected: 0 })
    }
  },
  async onPullDownRefresh() {
    let community = this.selectComponent('#community')
    community.pullDownRefresh()
  },
  async onReachBottom() {
    let community = this.selectComponent('#community')
    community.reachBottom()
  }
})
